home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Utilities / Installers / InstallerMaker™ 3.0 / Preinstalled version / Customizing InstallerMaker / Sample Code / IPkg & IBeg Example / DemoIPkg.c next >
Encoding:
C/C++ Source or Header  |  1995-08-03  |  1.8 KB  |  72 lines  |  [TEXT/MMCC]

  1. /******************************************************************************
  2. **
  3. **  Project Name:    IPkg Demo
  4. **     File Name:    DemoIPkg.c
  5. **
  6. **   Description:    IPkg routine that uses a PKgs for the IPkg demo
  7. **
  8. **   Copyright© 1995 Aladdin Systems, inc.
  9. **
  10. *******************************************************************************
  11. **                       A U T H O R   I D E N T I T Y
  12. *******************************************************************************
  13. **
  14. **    Initials    Name
  15. **    --------    -----------------------------------------------
  16. **    RMT            Robert Thorne
  17. **
  18. *******************************************************************************
  19. **                      R E V I S I O N   H I S T O R Y
  20. *******************************************************************************
  21. **
  22. **      Date        Time    Author    Description
  23. **    --------    -----    ------    ---------------------------------------------
  24. **    05/03/95            RMT        Moved scraps into MW framework
  25. **    08/03/95            RMT        Changed name of headers and some macros.
  26. **
  27. ******************************************************************************/
  28.  
  29. #include "IMPackages256.h"
  30. #include "IMExtensionsFor3_0.h"
  31. #include "IPkgDemo.h"
  32. #include <Strings.h>
  33.  
  34. #include "A4Globals.h" /* Quick trick to let us compile and test easier */
  35.  
  36. #if !GLOBALS_ALWAYS_AVAILABLE
  37.     #define IPKG_MAIN main
  38. #endif
  39.  
  40. #define kDemoStrLen 40
  41.  
  42. // Here's a shell for writing IPkg extensions.
  43.  
  44. pascal void  IPKG_MAIN(    unsigned long *packages,
  45.                         unsigned long *refCon)
  46. {
  47.     long            oldA4 ;
  48.         
  49.     // If we're running as a resource, we establish our A4 world here
  50.     MAIN_SETUP_GLOBALS(oldA4) ;
  51.     
  52.     IPKGMain (packages, refCon) ;
  53.  
  54.     MAIN_RESTORE_GLOBALS(oldA4) ;
  55.     
  56.     return ;
  57.     
  58. }
  59.     
  60.  
  61. // Hammer in our package bits
  62. void    IPKGMain ( unsigned long *packages,unsigned long *refcon)
  63. {
  64.     Handle packData ;
  65.     
  66.     packData = GetPackagesFromPKgs( kPKgsID, packages ) ;
  67.     
  68.     
  69. }
  70.  
  71.  
  72.